package com.heima.controller.v1;

import com.heima.article.dto.ArticleDto;
import com.heima.article.pojo.ArticleContent;
import com.heima.service.ArticleContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/api/v1/articleContent")
public class ArticleContentController {

    @Autowired
    private ArticleContentService articleContentService;

    @PostMapping("/save/content")
    public void saveContent(@RequestBody ArticleDto dto){
        articleContentService.saveContent(dto);
    }
}
